package com.module.antiFake.vo;

import java.util.Date;

import base.util.DateUtil;

/**
 * AntifakeScanHistory entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class AntiFakeScanHistory implements java.io.Serializable {
	
	private static final long serialVersionUID = 6331847903177428074L;
	/**
	 * 单层码;
	 */
	public static final Short ONE_LABEL = new Short("1");
	/**
	 * 双层码;
	 */
	public static final Short DOUBLE_LABEL = new Short("2");

	private Long id;
	private String productId;
	private String productName;
	private String codeInfo;
	private Short type;
	private Short layerNum;
	private Double longitude;
	private Double latitude;
	private String orgid;
	private String createrid;
	private Date createtime;
	private String updaterid;
	private Date updatetime;
	private String status;
	private String firstCodeInfo;
	private String secondCodeInfo;
	private String imei;

	// 扫码次数,冗余字段
	private Integer times;
	
	//最后一次扫码时间,冗余字段;
	private Date lastScanDate;
	
	private Date firstScanDate;
	
	//当前第二层码是否已刷了，已刷状态为：1，未刷状态为:0
	private Short secondScaned;
	
	private Date antiFakeScanDate;//防伪码扫码时间
	private String orgName;	//组织名称;
	
	/**
	 * 3: 出库
	 * 2: 入库
	 * 1: 制作
	 * 0: 码不存在;
	 */
	private Integer codeState; //码状态
	
	
	/**
	 * 批次未开通 1
	 * 批次已开通 2
	 * 批次暂停 3
	 * 有问题     0
	 */
	private Integer batchCodeState;
	
	/**
	 * 返回记录的前pageSize条数,如果传入为0,则返回所有
	 */
	private int pageSize;
	
	private Integer sequenceNum;  //排序
	private String rollNum;        //卷号
	
	private String batchNo;	//批次号
	/**
	 * LBS表ID
	 */
	private Integer lbsId;
	private String location;
	private boolean recall;
	private String recallInfo;
	private Integer salesAreaId;
	private String adderss;
	private String orgEntrance;//企业入口
	
	public String getOrgEntrance() {
		return orgEntrance;
	}

	public void setOrgEntrance(String orgEntrance) {
		this.orgEntrance = orgEntrance;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getCodeInfo() {
		return codeInfo;
	}

	public void setCodeInfo(String codeInfo) {
		this.codeInfo = codeInfo;
	}

	public Short getType() {
		return type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	public Short getLayerNum() {
		return layerNum;
	}

	public void setLayerNum(Short layerNum) {
		this.layerNum = layerNum;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public String getOrgid() {
		return orgid;
	}

	public void setOrgid(String orgid) {
		this.orgid = orgid;
	}

	public String getCreaterid() {
		return createrid;
	}

	public void setCreaterid(String createrid) {
		this.createrid = createrid;
	}

	public Date getCreatetime() {
		if (createtime == null) {
			createtime = new Date();
		}
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getUpdaterid() {
		return updaterid;
	}

	public void setUpdaterid(String updaterid) {
		this.updaterid = updaterid;
	}

	public Date getUpdatetime() {
		if (updatetime == null) {
			updatetime = new Date();
		}
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getFirstCodeInfo() {
		return firstCodeInfo;
	}

	public void setFirstCodeInfo(String firstCodeInfo) {
		this.firstCodeInfo = firstCodeInfo;
	}

	public Integer getTimes() {
		return times;
	}

	public void setTimes(Integer times) {
		this.times = times;
	}

	public Date getLastScanDate() {
		return lastScanDate;
	}

	public void setLastScanDate(Date lastScanDate) {
		this.lastScanDate = lastScanDate;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getSecondCodeInfo() {
		return secondCodeInfo;
	}

	public void setSecondCodeInfo(String secondCodeInfo) {
		this.secondCodeInfo = secondCodeInfo;
	}

	public String getCreatetimeStr() {
		return DateUtil.dateFormat(getCreatetime());
	}

	public Short getSecondScaned() {
		if(secondScaned == null){
			secondScaned = new Short("0");
		}
		return secondScaned;
	}

	public void setSecondScaned(Short secondScaned) {
		this.secondScaned = secondScaned;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public Date getAntiFakeScanDate() {
		return antiFakeScanDate;
	}

	public void setAntiFakeScanDate(Date antiFakeScanDate) {
		this.antiFakeScanDate = antiFakeScanDate;
	}

	public Integer getCodeState() {
		return codeState;
	}

	public void setCodeState(Integer codeState) {
		this.codeState = codeState;
	}

	public Integer getBatchCodeState() {
		if(batchCodeState == null ){
			batchCodeState = new Integer(0);
		}
		return batchCodeState;
	}

	public void setBatchCodeState(Integer batchCodeState) {
		this.batchCodeState = batchCodeState;
	}

	public Integer getSequenceNum() {
		return sequenceNum;
	}

	public void setSequenceNum(Integer sequenceNum) {
		this.sequenceNum = sequenceNum;
	}

	public String getRollNum() {
		return rollNum;
	}

	public void setRollNum(String rollNum) {
		this.rollNum = rollNum;
	}

	public Date getFirstScanDate() {
		return firstScanDate;
	}

	public void setFirstScanDate(Date firstScanDate) {
		this.firstScanDate = firstScanDate;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}

	public Integer getLbsId() {
		return lbsId;
	}

	public void setLbsId(Integer lbsId) {
		this.lbsId = lbsId;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public boolean isRecall() {
		return recall;
	}

	public void setRecall(boolean recall) {
		this.recall = recall;
	}

	public String getRecallInfo() {
		return recallInfo;
	}

	public void setRecallInfo(String recallInfo) {
		this.recallInfo = recallInfo;
	}

	public Integer getSalesAreaId() {
		return salesAreaId;
	}

	public void setSalesAreaId(Integer salesAreaId) {
		this.salesAreaId = salesAreaId;
	}

	public String getAdderss() {
		return adderss;
	}

	public void setAdderss(String adderss) {
		this.adderss = adderss;
	}
	

}